<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="com.zhang.sys.SysSystem"%>
<%@page import="com.zhang.sys.SysUser"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%
	Object systemObject = session.getAttribute("systemBean");
	SysSystem systemBean = null;
	String sysId = "";
	String loginUserXm = "";
	if (systemObject == null) {
		response.sendRedirect(basePath + "/index.jsp");
	} else {
		systemBean = (SysSystem) systemObject;
		sysId = systemBean.getSysId();
	}

	Object userBeanObj = session.getAttribute("userBean");
	SysUser sysuser = null;
	sysuser = (SysUser) userBeanObj;
	if(sysuser!=null){
		loginUserXm = sysuser.getUserName();
	}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<title>桌面系统</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="Shortcut Icon" href="favicon.ico">
		<link rel="Bookmark" href="favicon.ico">
		<script type="text/javascript">
    	var LoginUserXm = '<%=loginUserXm%>';
    	var hashcode = '<%=sysId%>';
    </script>
		<link rel="stylesheet" type="text/css"
			href="ui/resources/css/ext-all.css" />
		<link rel="stylesheet" type="text/css" href="module/css/main.css" />
		<link rel="stylesheet" type="text/css" href="module/css/syscss.css" />
		<script type="text/javascript" src="ui/ext-all.js"></script>
		<script type="text/javascript" src="ui/locale/ext-lang-zh_CN.js"></script>
		<script type="text/javascript" src="module/main/init.js"></script>
	</head>
	<body>
		<!-- 系统显示区域 -->
		<div id="m">
		</div>
	</body>
</html>
